﻿#define _SILENCE_EXPERIMENTAL_FILESYSTEM_DEPRECATION_WARNING
#include "util.hpp"
#include "data.hpp"
#include "client.hpp"

#define BACKUP_FILE "./backup.dat.txt"
#define BACKUP_DIR "./backup/"
int main()
{
	//测试文件工具类
	//cloud::FileUtil fu("util.hpp");
	//std::string body;
	//fu.GetContent(&body);
	//std::cout << fu.FileName() << std::endl;
	//std::cout << fu.FileSize() << std::endl;
	//std::cout << fu.LastATime() << std::endl;
	//std::cout << fu.LastMTime() << std::endl;
	//std::cout << body << std::endl;
	//测试数据管理类
	//cloud::DataManager data("./backup_file");
	////data.Insert("util.hpp", "xxxxxxx");
	////data.Insert("data.hpp", "hhhhhhh");
	//std::string val1;
	//std::string val2;
	//data.GetOneByKey("util.hpp", &val1);
	//data.GetOneByKey("data.hpp", &val2);
	//std::cout << val1 << std::endl;
	//std::cout << val2 << std::endl;

	cloud::Client client(BACKUP_DIR,BACKUP_FILE);
	client.RunModule();
	return 0;
}